<?php
$html = array();
foreach ($roles as $role) {
    $html[] = $this->Html->link($role['title'], array('controller'=>'roles', 'action'=>'view', $role['id']));
}
echo implode(', ', $html);